package com.xxxx.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxx.server.pojo.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2020-09-07
 */
public interface AdminMapper extends BaseMapper<Admin> {
    /**
     * 根据用户id，修改用户的登录权限
     * @param map
     */
    void updateAdminEnabledById(Map<String, Object> map);

    boolean updateAdminInfoById(Admin admin);

    boolean updateAdminPasswordInfo(LinkedHashMap<String, Object> map);

    boolean updateAdminUserFaceById(@Param("id") Integer id,@Param("path") String path);
}
